#include <iostream>
using namespace std;

class Test{
    private:
        int a;
        int b;
    public:
        void init(int a, int b){
            #if 0
            // 这种写法是形参 自身给自身 赋值
            // 并不是赋值给了成员变量a
            a = a;
            b = b;
            #else
            // 这种写法才能把形参的值赋值给成员变量a
            this->a = a;
            this->b = b;
            #endif
        }
        void show(){
            cout << a << " " << b << endl;
        }
};

int main(int argc, const char *argv[]){
    Test t1;
    t1.init(10, 20);
    t1.show();

    return 0;
}